package com.huaxin.common.message.mp3recorder.audio;

import android.media.AudioFormat;
import android.media.MediaRecorder;

public class AudioConfig {
    /**
     * 每一帧编码后大小的数值
     * 列如： 比特率为160，经过编码压缩之后，160个字节压缩为20+8个字节，那么这个frameSize = 20+8
     * 解码还原时，再把20+8个字节解码变为160个源数据
     */
    public static int BUFFER_FRAME_SIZE = 160;//160;
    /**
     * Recorder Configure
     */
    public static final int SAMPLERATE = 8000;//8000;// 8KHZ
    public static final int PLAYER_CHANNEL_CONFIG = AudioFormat.CHANNEL_OUT_MONO;
    public static final int AUDIO_FORMAT = AudioFormat.ENCODING_PCM_16BIT;

    /**
     * Recorder Configure
     */
    public static final int AUDIO_RESOURCE = MediaRecorder.AudioSource.MIC;
    public static final int RECORDER_CHANNEL_CONFIG = AudioFormat.CHANNEL_IN_MONO;
}
